<?php $auth = $this->auth;?>
<div id="main-header">
    <div id="left-header">
        <a href="/" name="top"><img src="<?php echo $this->imgUrl?>/logo.png" /></a>
        <ul id="ul-header">
            <li><a href="/index/game" <?php if($this->controller == "index"&& $this->action == "game"){?> class="li-selected"<?php }?>>Game</a></li>
            <li><a href="/index/application"  <?php if($this->controller == "index"&& $this->action == "application"){?> class="li-selected"<?php }?>>Ứng dụng</a></li>
            <li><a href="/index/background" class="last-child  <?php if($this->controller == "index"&& $this->action == "background"){?>li-selected<?php }?>">Hình nền</a></li>
        </ul> 
    </div>
    <!-- end #left-header -->
    <div id="right-header">
        <a href="http:/" class="header-nav" >Blog</a>
        <?php if(empty($auth['email'])){?>
        <a href="#" class="header-nav" onclick="showLogin('login')">Đăng nhập</a>
        <?php }else{ ?>
		<div class ="login_active">
            <div class="text"><?php echo $auth['email']?></div>
            <div class="login-nav">
                <ul>
                    <li><a href="/index/selected-link?user_id=<?php echo $auth['user_id']?>">Sản lượng</a></li>
                    <li><a href="/index/edit-info?user_id=<?php echo $auth['user_id']?>">Thông tin </a></li>
                    <li></li><a href="/index/logout">Thoát</a></li>
                </ul>
            </div>
		</div>
        <?php }?>          
           
        <div id="small-nav">
            <a target="_blank" href="http://www.twitter.com/">
                <img src="<?php echo $this->imgUrl?>/twitter.png" />
            </a>
            <a target="_blank" href="http://www.facebook.com/">
                <img src="<?php echo $this->imgUrl?>/face.png" />
            </a>
            <a target="_blank" href="http://plus.google.com/">
                <img src="<?php echo $this->imgUrl?>/google+.png" />
            </a>
        </div>
        <div id="login">
            <a href="/index/login-yahoo">Đăng nhập bằng yahoo</a>
            <a href="/index/login-gmail">Đăng nhập bằng gmail</a>
        </div>
    </div>
    
</div>